<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@page import="cn.com.entity.Doctor"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
#main{
	margin: 10% 20% 5% 20%;
}
</style>
</head>
<body>
<%

Doctor doctor=(Doctor)session.getAttribute("doctor");
if(doctor!=null){
%>
<div id="main"><h2>欢迎&nbsp;<%=doctor.getDoctorrealname() %>&nbsp;访问医院管理系统！

	<br/><br/>现在时间是：公元 
<%
Date shijian=new Date();
SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日  hh:mm:ss");
out.print(sdf.format(shijian));
%>
</h2>
</div>
<%
}%>
</body>
</html>